<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>退货商品</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddShopHouseModal()">
                            <i class="fa fa-plus"></i>选择订单商品
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">类型</th>
                            <th class="text-center">订单编号</th>
                            <th class="text-center">名称</th>
                            <th class="text-center">用户</th>
                            <th class="text-center">购买数量</th>
                            <th class="text-center">支付金额</th>
                            <th class="text-center">退货数量</th>
                            <th class="text-center">单价</th>
                            <th class="text-center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="order in applyReturnOrderrCartManageInfo.orderCarts">
                            <td class="text-center">{{order.cartType == '3307'?'服务':'商品'}}</td>
                            <td class="text-center">{{order.orderId}}</td>
                            <td class="text-center">{{order.prodName}}</td>
                            <td class="text-center">{{order.personName}}</td>
                            <td class="text-center">{{order.cartNum}}</td>
                            <td class="text-center">{{order.payPrice}}</td>
                            <td class="text-center">
                                <input class="form-control" v-model="order.returnCartNum" type="number"
                                       @keyup="_caculTotalMount()"/>
                            </td>
                            <td class="text-center">{{order.price}}</td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_deleteProduct(order)">删除
                                    </button>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="9">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>说明</h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-1 col-form-label text-right">总金额</label>
                        <label class="col-sm-3 col-form-label" style="font-size: 14px;color: red;">
                            {{applyReturnOrderrCartManageInfo.totalMount}} </label>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-1 col-form-label text-right">退货说明</label>
                        <div class="col-sm-11 ">
                            <textarea v-model="applyReturnOrderrCartManageInfo.remark" placeholder="必填，请填写进货说明"
                                      maxlength="250" class="form-control"></textarea>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <button class="btn btn-primary float-right" type="button" v-on:click="_doInoutOrder()">
                            <i class="fa fa-check"></i>&nbsp;提交
                        </button>
                        <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                v-on:click="_goBack()">
                            <i class="fa fa-close"></i>&nbsp;取消
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="goods/chooseStoreOrderCart" emitChooseProduct='applyReturnOrderrCartManage'
               emitLoadData='applyReturnOrderrCartManage'>
    </vc:create>
</div>